package com.ruoyi.project.system.service;

import java.util.List;
import com.ruoyi.project.system.domain.TShortanswer;

/**
 * 简答题库Service接口
 * 
 * @author ruoyi
 * @date 2020-05-09
 */
public interface ITShortanswerService 
{
    /**
     * 查询简答题库
     * 
     * @param shortanswerId 简答题库ID
     * @return 简答题库
     */
    public TShortanswer selectTShortanswerById(Integer shortanswerId);

    /**
     * 查询简答题库列表
     * 
     * @param tShortanswer 简答题库
     * @return 简答题库集合
     */
    public List<TShortanswer> selectTShortanswerList(TShortanswer tShortanswer);

    /**
     * 新增简答题库
     * 
     * @param tShortanswer 简答题库
     * @return 结果
     */
    public int insertTShortanswer(TShortanswer tShortanswer);

    /**
     * 修改简答题库
     * 
     * @param tShortanswer 简答题库
     * @return 结果
     */
    public int updateTShortanswer(TShortanswer tShortanswer);

    /**
     * 批量删除简答题库
     * 
     * @param shortanswerIds 需要删除的简答题库ID
     * @return 结果
     */
    public int deleteTShortanswerByIds(Integer[] shortanswerIds);

    /**
     * 删除简答题库信息
     * 
     * @param shortanswerId 简答题库ID
     * @return 结果
     */
    public int deleteTShortanswerById(Integer shortanswerId);

    /**
     * 添加关联信息
     * @param subject_id 科目id
     * @param multiSel_id 选项id
     * @return
     */
    public int addMiddle(Integer  subject_id ,Integer multiSel_id);

    /**
     * 修改关联信息
     * @param subject_id 科目id
     * @param multiSel_id 选项id
     * @param courseName 旧的科目id
     * @return
     */
    public int updateMiddle(Integer  subject_id ,Integer multiSel_id,String courseName );

    /**
     * 删除关联信息
     * @param subject_id 科目id
     * @param multiSel_id 选项id
     * @return
     */
    public int deleteMiddle(Integer  subject_id ,Integer multiSel_id);
}
